View Issue Details

IDProjectCategoryView StatusLast Update
0001954T99X171.00 SKB EagleSW Issuepublic2024-06-10 13:06
Reporter(ALTech) Younkwang Jung Assigned To(SW) Kinbay Wu Due Date2024-06-05 18:53
PriorityhighSeveritys4-minorReproducibilityrandom
Status closedResolutionfixed 
Summary0001954: [Smart3][UI542][VoC] Netflix crash issue
DescriptionHi Kinbay

A VoC is being observed that Netflix is not running.
https://jira.skbroadband.com/browse/BTVV-7889

Please check the attached video
and it is not reproduced in the our QA team.

The following error situations are observed on the log. ME0035_20240603_2c_98_11_a4_7a_ce.zip
===============================================================
06-03 13:37:49.409 E 12603 12603 FatalExceptionHandler: Fatal exception: {"stack":[{"index":0,"className":"android.app.ActivityThread","methodName":"performLaunchActivity","line":3635,"file":"ActivityThread.java"},{"index":1,"className":"android.app.ActivityThread","methodName":"handleLaunchActivity","line":3792,"file":"ActivityThread.java"},{"index":2,"className":"android.app.servertransaction.LaunchActivityItem","methodName":"execute","line":103,"file":"LaunchActivityItem.java"},{"index":3,"className":"android.app.servertransaction.TransactionExecutor","methodName":"executeCallbacks","line":135,"file":"TransactionExecutor.java"},{"index":4,"className":"android.app.servertransaction.TransactionExecutor","methodName":"execute","line":95,"file":"TransactionExecutor.java"},{"index":5,"className":"android.app.ActivityThread$H","methodName":"handleMessage","line":2210,"file":"ActivityThread.java"},{"index":6,"className":"android.os.Handler","methodName":"dispatchMessage","line":106,"file":"Handler.java"},{"index":7,"className":"android.os.Looper","methodName":"loopOnce","line":201,"file":"Looper.java"},{"index":8,"className":"android.os.Looper","methodName":"loop","line":288,"file":"Looper.java"},{"index":9,"className":"android.app.ActivityThread","methodName":"main","line":7839,"file":"ActivityThread.java"},{"index":10,"className":"java.lang.reflect.Method","methodName":"invoke","line":-2,"file":"Method.java"},{"index":11,"className":"com.android.internal.os.RuntimeInit$MethodAndArgsCaller","methodName":"run","line":548,"file":"RuntimeInit.java"},{"index":12,"className":"com.android.internal.os.ZygoteInit","methodName":"main","line":1003,"file":"ZygoteInit.java"}],"cause":{"stack":[{"index":0,"className":"java.lang.Integer","methodName":"parseInt","line":627,"file":"Integer.java"},{"index":1,"className":"java.lang.Integer","methodName":"parseInt","line":650,"file":"Integer.java"},{"index":2,"className":"android.view.Display$Mode","methodName":"getPhysicalWidth","line":1781,"file":"Display.java"},{"index":3,"className":"com.netflix.ninja.NetflixService","methodName":"getDisplayVideoSize","line":3350,"file":"NetflixService.java"},{"index":4,"className":"com.netflix.ninja.MainActivity","methodName":"createUi","line":467,"file":"MainActivity.java"},{"index":5,"className":"com.netflix.ninja.MainActivity","methodName":"onCreate","line":358,"file":"MainActivity.java"},{"index":6,"className":"android.app.Activity","methodName":"performCreate","line":8051,"file":"Activity.java"},{"index":7,"className":"android.app.Activity","methodName":"performCreate","line":8031,"file":"Activity.java"},{"index":8,"className":"android.app.Instrumentation","methodName":"callActivityOnCreate","line":1329,"file":"Instrumentation.java"},{"index":9,"className":"android.app.ActivityThread","methodName":"performLaunchActivity","line":3608,"file":"ActivityThread.java"},{"index":10,"className":"android.app.ActivityThread","methodName":"handleLaunchActivity","line":3792,"file":"ActivityThread.java"},{"index":11,"className":"android.app.servertransaction.LaunchActivityItem","methodName":"execute","line":103,"file":"LaunchActivityItem.java"},{"index":12,"className":"android.app.servertransaction.TransactionExecutor","methodName":"executeCallbacks","line":135,"file":"TransactionExecutor.java"},{"index":13,"className":"android.app.servertransaction.TransactionExecutor","methodName":"execute","line":95,"file":"TransactionExecutor.java"},{"index":14,"className":"android.app.ActivityThread$H","methodName":"handleMessage","line":2210,"file":"ActivityThread.java"},{"index":15,"className":"android.os.Handler","methodName":"dispatchMessage","line":106,"file":"Handler.java"},{"index":16,"className":"android.os.Looper","methodName":"loopOnce","line":201,"file":"Looper.java"},{"index":17,"className":"android.os.Looper","methodName":"loop","line":288,"file":"Looper.java"},{"index":18,"className":"android.app.ActivityThread","methodName":"main","line":7839,"file":"ActivityThread.java"},{"index":19,"className":"java.lang.reflect.Method","methodName":"invoke","line":-2,"file":"Me
06-03 13:37:49.482 I 12603 12603 Process : Sending signal. PID: 12603 SIG: 9
================================================================
Please check why this issue occurs.

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

Activities

(ALTech) Younkwang Jung

2024-06-04 18:00

developer  

(ALTech) Younkwang Jung

2024-06-05 09:06

developer   ~0015953

Hi Kinbay

When I reviewed the log, it seems that there is a problem due to edid.
I made a test FW that sets all edid values to zero and checked it
An issue is being observed that Netflix is not running

TEST FW is
http://altserver01.duckdns.org/release_by_ALT/AMANDROIDS-186/

There are various TVs in the field.
Some of them may not be able to read the edid.

Please refer to the attached TestFW and check why netflix is not running.

Thank you
YK.Jung

(SW) Kinbay Wu

2024-06-05 10:23

developer   ~0015954

Last edited: 2024-06-05 10:37

Hi Jung

Here is some info
------------------
[{"index":0,"className":"java.lang.Integer","methodName":"parseInt","line":627,"file":"Integer.java"},{"index":1,"className":"java.lang.Integer","methodName":"parseInt","line":650,"file":"Integer.java"},{"index":2,"className":"android.view.Display$Mode","methodName":"getPhysicalWidth","line":1781,"file":"Display.java"},{"index":3,"className":"com.netflix.ninja.NetflixService","methodName":"getDisplayVideoSize","line":3350,"file":"NetflixService.java"},
------------------
The exception is in the java.lang.Integer.parseInt method, indicating an error when attempting to parse an integer in the com.netflix.ninja.NetflixService.getDisplayVideoSize method.

Which occurs when the string being parsed is not a valid integer. This typically happens due to:
1) Invalid String Format: The string passed to Integer.parseInt is not a valid number (e.g., it contains letters or other non-numeric characters).
2) Empty String: The string is empty and cannot be parsed into an integer.
 
 
I found the source code has a commit by amlogic 4 months ago. (as screenshot and below code)
commit hash c420dc8a
frameworks/base/core/java/android/view/Display.java
------------------
@@ -1771,6 +1773,16 @@ public final class Display {
          * rendering content through a {@link android.view.SurfaceView} using full size buffers.
          */
         public int getPhysicalWidth() {
+ int width = 0;
+ String strDisplaySize = SystemProperties.get("vendor.display-size");
+
+ if (ActivityThread.currentOpPackageName().equals("com.netflix.ninja") && strDisplaySize != null) {
+ String[] parts = strDisplaySize.split("x");
+ width = Integer.parseInt(parts[0]); // <===== crash here
+ Log.d(TAG, "return real width for Netflix: " + width);
+ return width;
+ }
+
             return mWidth;
         }
------------------
 
You can modify it to include error handling
Use try catch method and if catch gives the width a default value
# getPhysicalHeight may also need to modify
 
As you said, the edid parsing error is the root cause.
Even if Display.java is optimized, there may be other situations.
 
Best Regards
Kinbay

(SW) Kinbay Wu

2024-06-05 10:30

developer   ~0015955

image.png (67,434 bytes)   
image.png (67,434 bytes)   

(ALTech) Younkwang Jung

2024-06-05 11:18

developer   ~0015956

Hi Kinbay

Thank you for the update.
I am checking with AML FAE

Thank you
YK.Jung

(ALTech) Younkwang Jung

2024-06-10 13:06

developer   ~0015974

Hi Kinbay

I received the patch from AML and it is confirmd that it works OK
So I will close this ticket!

Thank you for your support
YK.Jung

Issue History

Date Modified Username Field Change
2024-06-04 18:00 (ALTech) Younkwang Jung New Issue
2024-06-04 18:00 (ALTech) Younkwang Jung Status new => assigned
2024-06-04 18:00 (ALTech) Younkwang Jung Assigned To => (SW) Kinbay Wu
2024-06-04 18:00 (ALTech) Younkwang Jung File Added: 20240603_133946.mp4
2024-06-04 18:00 (ALTech) Younkwang Jung File Added: ME0035_20240603_2c_98_11_a4_7a_ce.zip
2024-06-04 18:01 (ALTech) Younkwang Jung Summary [Smart3][UI542][VoC] NETFLIX crash issue => [Smart3][UI542][VoC] Netflix crash issue
2024-06-04 18:01 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2024-06-04 18:02 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2024-06-04 18:02 (ALTech) Younkwang Jung Issue Monitored: (ALTech) Wooshin Kang
2024-06-04 18:02 (ALTech) Younkwang Jung Issue Monitored: (ALTech) Sangmin Choi
2024-06-05 09:06 (ALTech) Younkwang Jung Note Added: 0015953
2024-06-05 10:23 (SW) Kinbay Wu Note Added: 0015954
2024-06-05 10:30 (SW) Kinbay Wu Note Added: 0015955
2024-06-05 10:30 (SW) Kinbay Wu File Added: image.png
2024-06-05 10:34 (SW) Kinbay Wu Note Edited: 0015954
2024-06-05 10:37 (SW) Kinbay Wu Note Edited: 0015954
2024-06-05 11:18 (ALTech) Younkwang Jung Note Added: 0015956
2024-06-10 13:06 (ALTech) Younkwang Jung Note Added: 0015974
2024-06-10 13:06 (ALTech) Younkwang Jung Status assigned => closed
2024-06-10 13:06 (ALTech) Younkwang Jung Resolution open => fixed